/**
 * @TickAction.as
 *
 * @author sodaChen mail:sujun10#21cn.com
 * @version 1.0
 * <br>Copyright (C), 2008-2016 asFrame.com
 * <br>This program is protected by copyright laws.
 * <br>Program Name:ASFrame
 * <br>Date:2016-6-14
 */
package com.asframe.action
{
	import com.asframe.mgr.TickMgr;
	import com.asframe.tick.ITick;
	import com.asframe.tick.Tick;

	/**
	 * 具备心跳功能的action
	 * @author sodaChen
	 * Date:2016-6-14
	 */
	public class TickAction extends BasicAction implements ITick
	{
		public function TickAction()
		{
			super();
		}
		public override function start(actor:IActor):void
		{
			super.start(actor);
			TickMgr.getInstance().addTick(this);
		}
		public override function destroy(o:* = null):void
		{
			if(isDestory)
				return ;

			TickMgr.getInstance().removeTick(this);
			super.destroy(o);
		}
		public function tick():void
		{

		}
	}
}